﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using SMARTHOTEL.RoomTypes;
using SMARTHOTEL.Users;
using SMARTHOTEL.VerificationCode;


namespace SMARTHOTEL.User
{
    /// <summary>
    /// 接口定义了服务用户的相关操作
    /// </summary>
    public interface IServiceUsers
    {
        /// <summary>
        /// 异步添加新用户
        /// </summary>
        /// <param name="user">用户数据传输对象</param>
        /// <returns>API结果对象，包含操作结果</returns>
        Task<APIResult> AddUser(UserDto user);

        /// <summary>
        /// 异步用户登录
        /// </summary>
        /// <param name="UserName">用户名</param>
        /// <param name="UserPwd">用户密码</param>
        /// <returns>API结果对象，包含操作结果</returns>
        Task<RoomTypes.ResultDto<LoginDto>> Login(string UserName,string UserPwd);
        /// <summary>
        /// 验证码
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ResultDto<VerificationCodeDto>> Captcha(string id);

        Task<APIResult> DelUsers(Guid id);

    }
}
